//1.基本数据类型
var name1 = 'zhufeng4';
var age = 10;
var isAlive = true;
var x = undefined;
var y = null;
name1 = null;
name1 = undefined;
//2.数组 1. 长度任意 2. 类型必须是统一的
var names = ['a', 'b', 'c'];
var names2 = ['a', 'b', 'c'];
//3. tuple 元组 是一个长度和类型都确定的数组
var person = ["zhufeng", 10, 'male'];
console.log(person[0].length);
console.log(person[1].toFixed(2));
console.log(person[2].length);
//枚举类型
var Gender;
(function (Gender) {
    Gender[Gender["BOY"] = 0] = "BOY";
    Gender[Gender["GIRL"] = 1] = "GIRL";
})(Gender || (Gender = {}));
var boy = Gender.BOY;
var colors = [0 /* RED */, 1 /* YRLLOW */, 2 /* BLUE */];
//any表示任意类型
var x2;
x2 = 'zhufeng';
x2 = 10;
x2 = null;
x2 = undefined;
//never 永远不
//1. 作为没有返回值的函数的返回值类型
function getY() {
    console.log(1);
    throw new Error('报错了');
    console.log(2);
}
function sum() {
    while (true) {
    }
    console.log(2);
}
sum();
function getName() {
    console.log('hello');
    return null;
}
